package com.wit.dao;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.wit.po.Client;
import com.wit.po.Department;
import com.wit.po.Employee;
import com.wit.po.Policy;

public interface PolicyDao {
	
	public boolean addPolicy(Policy policy);
	
	public boolean deletePolicy(Policy policy);
	
	public boolean modifyPolicy(Policy policy);
	
	public Policy findPolicyByIdenfier(String policyId);
	
	public List<Policy> findPolicyByCondition(DetachedCriteria dc, Integer startRecord, Integer pageSize);
	
	public Integer findPolicyCount(DetachedCriteria dc);
	
	public Client findClientById(String clientId);
	
	public Employee findEmployeeById(String employeeId);
	
	public List<Department> findAllDepartment();
	
	public List assessPolicy(DetachedCriteria dc);
}
